



/* Code from ANDY BELL Modern CSS Reset*/

/* Box sizing rules */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Prevent font size inflation */
html {
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}

/* Remove default margin in favour of better control in authored CSS */
body, h1, h2, h3, h4, p,
figure, blockquote, dl, dd {
  margin-block-end: 0;
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[role='list'],
ol[role='list'] {
  list-style: none;
}

/* Set core body defaults */
body {
  min-height: 100vh;
  line-height: 1.5;
}

/* Set shorter line heights on headings and interactive elements */
h1, h2, h3, h4,
button, input, label {
  line-height: 1.1;
}

/* Balance text wrapping on headings */
h1, h2,
h3, h4 {
  text-wrap: balance;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
  text-decoration-skip-ink: auto;
  color: currentColor;
}

/* Make images easier to work with */
img,
picture {
  max-width: 100%;
  display: block;
}

/* Inherit fonts for inputs and buttons */
input, button,
textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* Make sure textareas without a rows attribute are not tiny */
textarea:not([rows]) {
  min-height: 10em;
}






/*------original code-------------*/




/* Actual Background Behind Grid*/

body {
  background-color: gray;
  min-height: 100vh;
  font-family: Arial;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows:  2fr;    
  margin: 0;
  gap: .75em; 
  grid-template-areas:
  "navbar"
  "main";
     
    /* Desktop  and anything bigger than a phone*/

    @media (width >=80em) {
      grid-template-rows:  3fr;
    }    

   @media (width >=110em) {
      grid-template-rows: 3fr;
    }   


}


/* Slideshow container */
.slideshow-container {
  max-width: 80rem;
  position: relative;
  margin: auto;
}

/* Hide the images by default */
.mySlides {
  display: none;
}


/* Next & previous buttons */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 40%;
  width: auto;
  margin-top: -22px;
  padding: 16px;
  color: orange;
  font-weight: bold;
  font-size: 6rem;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
}

@media (width >=70em) {
  .prev, .next {
    font-size: 3em;
    top: 50%;
  }
}

/* Position the "next button" to the right */
.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover, .next:hover {
  background-color: rgba(0,0,0,0.8);
}

/* Caption text */
.text {
  color: white;
  font-size: 15px;
  padding: 8px 12px;
  position: absolute;
  bottom: 8px;
  width: 100%;
  text-align: center;
}


/* The dots/bullets/indicators */
.dot {
  cursor: pointer;
  height: 15px;
  width: 15px;
  margin: 0 2px;
  background-color: black;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.active, .dot:hover {
  background-color: orange;
}


@keyframes fade {
  from {opacity: .4}
  to {opacity: 1}
}


/* HEADER CODE */
  

.nav-bar ul{
  list-style-type: none;
  background-color: gray;
  padding: 3rem;
  margin: 0;
  overflow: hidden;
  

}

.nav-bar a {
  font-size: 2rem;
  text-decoration: none;
  display: block;
  text-align: center;
  color: white;
  padding: 2rem;
  float: left;
}


.nav-bar a:hover {
  background-color: orange;
  
}


/* MAIN AREA*/

main{
  background-color: lightyellow;
  grid-area: main;
  padding: 2rem;
}



.product-grid {
  display: grid;
  background-color: lightyellow;
  padding: 2rem; 
  gap: .5rem;
  grid-template-columns:
  repeat(1, 1fr);



  @media (width >=70em) {
      grid-template-columns: repeat(2, 1fr);
  }   

  @media (width >=110em) {
      grid-template-columns: repeat(4, 1fr);
  }   
  

}    
        
    

.card img {
  width: 100%;
  aspect-ratio: auto;
  object-fit: cover;
}

.card-price {
color: black;
font-size: 2rem;
}

.card-title {
  color: black;
  font-size: 2.5rem;
  font-style: none;

}

.card-description {
margin: 0;
padding: 50;
color: black;
font-size: 2rem;
font-style: none;
}

